#include "head.h" // <> 优先系统目录  "" 优先找当前，当前找不到找系统
int main(int argc, char *argv[])
{
    // ./server 192.168.118.128 1234 3
    ARGS_CHECK(argc,4);
    int workerNum = atoi(argv[3]);
    // 先准备保存每个子进程的信息
    workerdata_t * workerdataArr = (workerdata_t *)calloc(workerNum,sizeof(workerdata_t));
    // 创建workernum个子进程
    makeWorker(workerdataArr,workerNum);
    // 调用tcpInit函数 socket bind listen
    int sockfd;
    tcpInit(argv[1],argv[2],&sockfd);
    pause();
    return 0;
}

